<?php 
/* SVN FILE: $Id$ */
/* Condition Test cases generated on: 2008-12-21 05:12:02 : 1229838482*/
App::import('Model', 'Condition');

class ConditionTestCase extends CakeTestCase {
	var $Condition = null;
	var $fixtures = array('app.condition', 'app.item');

	function startTest() {
		$this->Condition =& ClassRegistry::init('Condition');
	}

	function testConditionInstance() {
		$this->assertTrue(is_a($this->Condition, 'Condition'));
	}

	function testConditionFind() {
		$this->Condition->recursive = -1;
		$results = $this->Condition->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Condition' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'name'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2008-12-21 05:48:02',
			'modified'  => '2008-12-21 05:48:02'
			));
		$this->assertEqual($results, $expected);
	}
}
?>